<?php


namespace app\model;

use think\Model;
use think\model\Pivot;

class DepartmentUser extends Pivot
{
    public function user()
    {
        return $this->hasOne(User::class);
    }
}